import Ax from './api';
const headers = {"Content-Type": "multipart/form-data"};
export default {
  packageAdd: (param = {}) => Ax.post(`/packageVersion/add`, param),
  packageEdit: (param = {}) => Ax.post(`/packageVersion/edit`, param),
  packageDelete: (query = {}) => Ax.delete(`/packageVersion/delete?_id=${query._id}`),
  packageList: (param = {}) => Ax.post(`/packageVersion/list`, param),
  packageDetail: (query = {}) => Ax.get(`/packageVersion/details?_id=${query._id}`),
  packageFileDelete: (query={}) => Ax.delete(`/packageVersion/file/delete?versionId=${query.versionId}&fileId=${query.fileId}`),
  packageUpload: (formData, param = {}) => Ax.post(`/file/upload?type=${param.type}&versionId=${param.versionId}&platform=${param.platform}&assetType=${param.assetType}`, formData, {headers: headers}),

};
